//
//  WXCellTableViewCell.m
//  民族文化宫
//
//  Created by kobehjk on 14-7-3.
//  Copyright (c) 2014年 WANG CUNRUI. All rights reserved.
//

#import "WXCellTableViewCell.h"

@implementation WXCellTableViewCell

- (void)layoutSubviews
{
    // 千万不要忘记super layoutSubViews
    [super layoutSubviews];
    
    
    
    // 将imageView的宽高设置为60
    [self.imageView setFrame:CGRectMake(10, 10, 60, 60)];
    [self.textLabel setFrame:CGRectMake(80, 10, 220, 30)];
    
    [self.textLabel setTextColor:[UIColor redColor]];
    [self.detailTextLabel setBackgroundColor :[UIColor blackColor]];
}

- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self setSelectionStyle:UITableViewCellSelectionStyleNone];
        UILabel *label3 = [[UILabel alloc]initWithFrame:CGRectMake(80, 50, 220, 40)];
        [self.contentView addSubview:label3];
        [label3 setTextColor:[UIColor darkGrayColor]];
        // 清除lable的背景颜色
        [label3 setBackgroundColor:[UIColor clearColor]];
        
        self.detailLabel = label3;
        
//        [self setAccessoryType:UITableViewCellAccessoryDisclosureIndicator];
//        [self setAccessoryType:UITableViewCellAccessoryDisclosureIndicator];
        // Initialization code
    }
    return self;
}

- (void)awakeFromNib
{
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated
{
    [super setSelected:selected animated:animated];
    if (selected) {
        [self setBackgroundColor:[UIColor whiteColor]];
    } else {
        // 撤销选中表格行
        [self setBackgroundColor:[UIColor whiteColor]];
    }
    
    // Configure the view for the selected state
}


@end
